package com.fmdc.ehtp.gi.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author usre
 *
 */
@Entity
@Table(name = "action" )
public class Action implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idAction")
    private Long idAction;
    @Column(name = "nomAction")
    private String nomAction;
	/**
	 * @param idAction
	 * @param nomAction
	 */
	public Action(Long idAction, String nomAction) {
		super();
		this.idAction = idAction;
		this.nomAction = nomAction;
	}
	/**
	 * @param nomAction
	 */
	public Action(String nomAction) {
		super();
		this.nomAction = nomAction;
	}
	/**
	 *
	 */
	public Action() {
		super();
	}
	/**
	 * @return the idAction
	 */
	public Long getIdAction() {
		return idAction;
	}
	/**
	 * @param idAction the idAction to set
	 */
	public void setIdAction(Long idAction) {
		this.idAction = idAction;
	}
	/**
	 * @return the nomAction
	 */
	public String getNomAction() {
		return nomAction;
	}
	/**
	 * @param nomAction the nomAction to set
	 */
	public void setNomAction(String nomAction) {
		this.nomAction = nomAction;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Action [idAction=" + idAction + ", nomAction=" + nomAction
				+ "]";
	}



}

